package com.eshore.norm.pattern.adapter.demo1;

import java.net.SocketTimeoutException;

/**
 * TODO
 *
 * @author: v-chenjl62
 * @date: 2024/2/5 9:54
 */
public class Client {

    public static void main(String[] args) {
        //直接读sdcark
        Computer computer=new Computer();
        String msg = computer.readSD(new SDCardImpl());
        System.out.println(msg);

        //从SD Adapter间接读
        SDAdapterTF sdAdapterTF = new SDAdapterTF(new TFCardImpl());
        String msg2 = computer.readSD(sdAdapterTF);
        System.out.println(msg2);
    }
}
